<?php
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \frontend\models\SignupForm */

$this->title = '十秒快速建立自己的帐号';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="site-signup">
    <div class="row">
        <div class="main pd20">
            <h3 class="text-success">十秒快速建立自己的帐号：</h3>
            <hr>
            <div class="row">
                <div class="col-xs-6 col-xs-offset-3">
                    <?php $form = ActiveForm::begin([
                        'action'=>Yii::$app->urlManager->createUrl('site/signup'),
                        'id' => 'form-signup',
                        'options' => ['class' => 'form-horizontal'],
                        'fieldConfig' => [
                            'template' => "<div class=\"col-xs-1\"></div><div class=\"col-xs-3\">{label}</div><div class=\"col-xs-8\">{input}</div>\n<div class=\"col-xs-4\"></div>{error}",
                        ],
                    ]); ?>
                    <?= $form->field($model, 'username')->label("用户名")?>
                    <?= $form->field($model, 'email')->label("邮箱")?>
                    <?= $form->field($model, 'password')->passwordInput()->label("密码") ?>
                    <div class="form-group">
                        <div class="col-sm-offset-4 col-sm-8">
                            <?= Html::submitButton('<span class="glyphicon glyphicon-check"></span> 注册账号', ['class' => 'btn btn-block btn-success ', 'name' => 'signup-button']) ?>
                        </div>
                    </div>
                    <?php ActiveForm::end(); ?>
                </div>
            </div>

        </div>
    </div>

</div>
